submitted-bind_umask2
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Thu, 22 Sep 2022 20:02:00 +0000 (21:02 +0100)
committerAurelien Jarno <aurel32@debian.org>
Thu, 22 Sep 2022 20:02:00 +0000 (21:02 +0100)
commitae7b49bdd86b3c6a8c9ebc6099def22a74899ca5
treef134fd66a162be5d869f74dd8eb07fca39904186
parent2b53c2fc749448c3aba1febfd20fc7469846bbd6
submitted-bind_umask2

2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>

Fix bind when umask is e.g. 0777.

        * sysdeps/mach/hurd/bind.c (__bind): Pass mode 0666 to __dir_mkfile
        instead of final mode, so that call __ifsock_getsockaddr can always
        succeed, before calling __file_chmod to fix the mode according to umask,
        before calling __dir_link to show the file.

Part of the original fix was committed, the other hasn't been yet, see Roland's
"Harumph" reply to
https://sourceware.org/ml/libc-alpha/2014-08/msg00408.html

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name submitted-bind_umask2.diff
sysdeps/mach/hurd/bind.c